package cn.nebula.music.dao;

import java.sql.Timestamp;
import java.util.Set;

import org.springframework.stereotype.Repository;

import cn.nebula.music.domain.Comment;

@Repository
public interface CommentDAO {
	public Set<Comment> findAllComments();

	public Set<Comment> findAllCommentsOfBT();

	public Comment findCommentById(Integer id);

	public Set<Comment> findCommentByContent(String content);

	public Set<Comment> findCommentByTime(Timestamp time);

	public Set<Comment> findCommentsBySong(Integer songId);

	public Set<Comment> findCommentsByUser(Integer userId);

	public Set<Comment> findCommentByComment(Integer commentId);

	public Integer addComment(Comment comment);

	public Integer updateComment(Comment comment);

	public Integer deleteCommentById(Integer id);
}
